"""TYUT_Lost_Found URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""



from django.urls import path, re_path
from django.conf import settings
from django.conf.urls.static import static

app_name = 'Lost_Found'
from Lost_Found import views
urlpatterns = [
    #注册
    path('registers/', views.registers, name='registers'),
    #登录.注册
    path('login/', views.login, name='login'),
    #找回密码
    path('lose_password/',views.lose_password,name='lose_password'),
    #招领详情页面
    re_path(r'^second_views/second_views_details',views.second_views_details,name="second_views_details"),
    #寻物详情页面
    re_path(r'^start_views/start_views_details',views.start_views_details,name="start_views_details"),
    #个人中心招领详情页面
    re_path(r'^per_center/second_views_details/', views.second_views_details, name="second_views_details"),
    #个人中心寻物详情页面
    re_path(r'^per_center/start_views_details', views.start_views_details, name="start_views_details"),
    #寻物
    path('start_views/',views.start_views,name='start_views'),
    path('search_start_time/start_views_details/',views.start_views),
    path('search_keyword/start_views_details/',views.start_views),
    path('search_second_time1/second_views_details/', views.second_views_details),
    path('search_keyword1/second_views_details/', views.second_views_details),

    #招领
    path('second_views/',views.second_views,name='second_views/'),
    #发布
    path('publish/',views.publish,name='publish'),
    #注销
    path('per_center/login_out/',views.login_out),
    #个人中心
    path('per_center/',views.per_center,name='per_center'),
    #其它
    path('about/',views.about,name="about"),
    #物品分类筛选
    re_path(r'^start_views/search_classification',views.search_classification),
    #时间筛选
    path('search_start_time/',views.search_start_time),
    #关键字筛选
    path('search_keyword/',views.search_keyword),
    #
    re_path(r'^second_views/search_classification1', views.search_classification1),
    #时间筛选
    path('search_second_time1/',views.search_second_time1),
    #关键字筛选
    path('search_keyword1/',views.search_keyword1),

    
]+static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)

